﻿using System;
using System.Windows;
using Microsoft.Win32;
using System.Configuration;

namespace ExcitingInstallableProgram
{
	/// <summary>
	/// Interaction logic for MainWindow.xaml
	/// </summary>
	public partial class MainWindow : Window
	{
		public MainWindow()
		{
			InitializeComponent();
		}

		private void StackPanel_Initialized(object sender, EventArgs e)
		{
			lbConfigSetting.Content=  ConfigurationManager.AppSettings.Get("InstallerReplacedSetting").ToString();
			lbMachineName.Content = ConfigurationManager.AppSettings.Get("InstallerSetMachineName").ToString();
			lbRegSetting.Content = Registry.GetValue(@"HKEY_CURRENT_USER\Software\ExcitingInstallableApplication", "KeyToCheck", "No Value Found").ToString();
		}
	}
}
